package com.suishoupai.xmb.dao;

import com.suishoupai.xmb.entity.UserBuy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by caojian on 2017/4/12.
 */
public interface CutUserBuyMapper {
    int updateByPrimaryKeySelective(UserBuy userBuy);

    int addNoPayByPrimaryKey(@Param("userId") long userId, @Param("noPayMax") int noPayMax);

    int paidByPrimaryKey(@Param("userId") long userId, @Param("score") int score);

    int orderCloseByPrimaryKey(@Param("userId") long userId, @Param("score") int score);

    UserBuy selectByPrimaryKey(@Param("userId") long userId);

    List<UserBuy> selectAllByScoreDesc();
}
